package com.huohuzhihui.merchant.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.huohuzhihui.merchant.mapper.MerActivityVideoMapper;
import com.huohuzhihui.merchant.domain.MerActivityVideo;
import com.huohuzhihui.merchant.service.IMerActivityVideoService;

/**
 * 商家活动视频Service业务层处理
 * 
 * @author huohuzhihui
 * @date 2021-04-01
 */
@Service
public class MerActivityVideoServiceImpl implements IMerActivityVideoService 
{
    @Autowired
    private MerActivityVideoMapper merActivityVideoMapper;

    /**
     * 查询商家活动视频
     * 
     * @param id 商家活动视频ID
     * @return 商家活动视频
     */
    @Override
    public MerActivityVideo selectMerActivityVideoById(Long id)
    {
        return merActivityVideoMapper.selectMerActivityVideoById(id);
    }

    /**
     * 查询商家活动视频列表
     * 
     * @param merActivityVideo 商家活动视频
     * @return 商家活动视频
     */
    @Override
    public List<MerActivityVideo> selectMerActivityVideoList(MerActivityVideo merActivityVideo)
    {
        return merActivityVideoMapper.selectMerActivityVideoList(merActivityVideo);
    }

    /**
     * 新增商家活动视频
     * 
     * @param merActivityVideo 商家活动视频
     * @return 结果
     */
    @Override
    public int insertMerActivityVideo(MerActivityVideo merActivityVideo)
    {
        return merActivityVideoMapper.insertMerActivityVideo(merActivityVideo);
    }

    /**
     * 修改商家活动视频
     * 
     * @param merActivityVideo 商家活动视频
     * @return 结果
     */
    @Override
    public int updateMerActivityVideo(MerActivityVideo merActivityVideo)
    {
        return merActivityVideoMapper.updateMerActivityVideo(merActivityVideo);
    }

    /**
     * 批量删除商家活动视频
     * 
     * @param ids 需要删除的商家活动视频ID
     * @return 结果
     */
    @Override
    public int deleteMerActivityVideoByIds(Long[] ids)
    {
        return merActivityVideoMapper.deleteMerActivityVideoByIds(ids);
    }

    /**
     * 删除商家活动视频信息
     * 
     * @param id 商家活动视频ID
     * @return 结果
     */
    @Override
    public int deleteMerActivityVideoById(Long id)
    {
        return merActivityVideoMapper.deleteMerActivityVideoById(id);
    }
}
